<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2026年春节倒计时</title>
    <style>
        body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: url('https://api.dujin.org/bing/1920.php') center/cover no-repeat fixed;
            font-family: 'Arial', sans-serif;
            color: white;
        }

        .container {
            text-align: center;
            background: rgba(0, 0, 0, 0.6);
            padding: 2rem;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        h1 {
            margin-bottom: 2rem;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .countdown {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .time-box {
            background: rgba(255, 255, 255, 0.1);
            padding: 1rem;
            border-radius: 10px;
            min-width: 100px;
            transition: transform 0.3s ease;
        }

        .time-box:hover {
            transform: scale(1.1);
        }

        .number {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .label {
            font-size: 1rem;
            opacity: 0.8;
        }

        .message {
            font-size: 1.2rem;
            margin-top: 2rem;
            line-height: 1.6;
        }

        @media (max-width: 600px) {
            .countdown {
                flex-wrap: wrap;
            }
            .time-box {
                min-width: 80px;
            }
            .number {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>2026年春节倒计时</h1>
        <div class="countdown">
            <div class="time-box">
                <div class="number" id="days">00</div>
                <div class="label">天</div>
            </div>
            <div class="time-box">
                <div class="number" id="hours">00</div>
                <div class="label">时</div>
            </div>
            <div class="time-box">
                <div class="number" id="minutes">00</div>
                <div class="label">分</div>
            </div>
            <div class="time-box">
                <div class="number" id="seconds">00</div>
                <div class="label">秒</div>
            </div>
        </div>
        <div class="message">
            愿新的一年带来新的希望<br>
            愿所有美好如约而至
        </div>
    </div>

    <script>
        function updateCountdown() {
            const now = new Date();
            const newYear = new Date('2026-02-16T00:00:00');
            const diff = newYear - now;

            if (diff <= 0) {
                document.getElementById('days').textContent = '00';
                document.getElementById('hours').textContent = '00';
                document.getElementById('minutes').textContent = '00';
                document.getElementById('seconds').textContent = '00';
                return;
            }

            const days = Math.floor(diff / (1000 * 60 * 60 * 24));
            const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
            const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
            const seconds = Math.floor((diff % (1000 * 60)) / 1000);

            document.getElementById('days').textContent = days.toString().padStart(2, '0');
            document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
            document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
            document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');
        }

        // 初始更新
        updateCountdown();
        // 每秒更新一次
        setInterval(updateCountdown, 1000);
    </script>
</body>
</html>
